﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nsf.Samples.RetryActivitySample.Infrastructure.ClientBase
{
    public class SafeClientBase<TChannel> : System.ServiceModel.ClientBase<TChannel>, IDisposable where TChannel : class
    {
        #region IDisposable Members

        void IDisposable.Dispose()
        {
            try
            {
                Close();
            }
            catch (Exception)
            {
                Abort();
            }
        }

        #endregion

    }
}
